// pages/index/weixiuHome/myRepairHouse/myRepairHouse.js
const request = require('../../../../utils/request')

Page({
  data: {
    factoryList: []
  },

  onLoad: function () {
    this.getFactoryList()
  },

  getFactoryList() {
    wx.showLoading()
    request.get('my_repair')
      .then(res => {
        wx.hideLoading()
       if (res.data && res.data.length) {
         this.setData({
           factoryList: res.data
         })
       }
      })
      .catch(error => {
        wx.showToast({
          icon: 'none',
          title: error.msg && error.msg
        })
      })
      .finally(_ => {
        
      })
  }
})